package com.ls.enums;
/**
 * <p>
 * 发送短信类型枚举类
 * 短信类型 1为发件短信 2为签收短信 3到件 4派件 5售后
 * </p>
 *
 * @author pengyu
 * @since 2020-05-25
 */
public enum SendStatusEnum {
    /**
     * 发件短信
     */
    SEND_SMS(1,"发件短信"),
    /**
     * 签收短信
     */
    SIGN_SMS(2,"签收短信"),
    /**
     * 到件短信
     */
    ARRIVE_SMS(3,"到件短信"),
    /**
     * 派件短信
     */
    DISPATCH_SMS(4,"派件短信"),
    /**
     * 售后短信
     */
    AFTER_SALE_SMS(5,"售后短信");
    public int sendStatus;
    public String sendStatusName;
    SendStatusEnum(int sendStatus, String sendStatusName) {
        this.sendStatus = sendStatus;
        this.sendStatusName = sendStatusName;
    }
    public static String getSendStatusName(int sendStatus) {
        for (SendStatusEnum enums : SendStatusEnum.values()) {
            if (enums.sendStatus == sendStatus) {
                return enums.sendStatusName;
            }
        }
        return null;
    }
}
